

export namespace FriendType {
  export enum Value {
    仅好友 = 'friend',
    非好友 = 'not_friend'
  }
  export const labels: Record<Value, string> = {
    [Value.仅好友]: "仅好友",
    [Value.非好友]: "非好友"
  };
  export const options = Object.keys(FriendType.Value).map(k => ({ value: (FriendType.Value as any)[k], label: k }));
  export function label(v: Value | undefined): string | undefined {
    if (!v) return void 0;
    return labels[v] ?? void 0;
  }
}
